package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生家教需求对象 student_tutor_requests
 * 
 * @author ruoyi
 * @date 2024-11-30
 */
public class StudentTutorRequests extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 学生ID，关联学生表 */
    @Excel(name = "学生ID")
    private Long userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 辅导科目 */
    @Excel(name = "辅导科目")
    private String subject;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 地点 */
    @Excel(name = "地点")
    private String location;

    /** 需求描述 */
    @Excel(name = "需求描述")
    private String description;

    /** 家教性别偏好 */
    @Excel(name = "家教性别偏好")
    private String preferredGender;

    /** 预算，单位为元 */
    @Excel(name = "预算")
    private BigDecimal budget;

    /** 可上课时间，例如：周一至周五下午 */
    @Excel(name = "可上课时间，例如：周一至周五下午")
    private String availability;

    /** 课程时长，例如：每次2小时 */
    @Excel(name = "课程时长，例如：每次2小时")
    private String duration;

    /** 授课方式 */
    @Excel(name = "授课方式")
    private String teachingMethod;

    /** 其他特殊要求 */
    @Excel(name = "其他特殊要求")
    private String additionalRequirements;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 需求状态 */
    @Excel(name = "需求状态")
    private String status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSubject() {
        return subject;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getGrade() {
        return grade;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setPreferredGender(String preferredGender) {
        this.preferredGender = preferredGender;
    }

    public String getPreferredGender() {
        return preferredGender;
    }

    public void setBudget(BigDecimal budget) {
        this.budget = budget;
    }

    public BigDecimal getBudget() {
        return budget;
    }

    public void setAvailability(String availability) {
        this.availability = availability;
    }

    public String getAvailability() {
        return availability;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getDuration() {
        return duration;
    }

    public void setTeachingMethod(String teachingMethod) {
        this.teachingMethod = teachingMethod;
    }

    public String getTeachingMethod() {
        return teachingMethod;
    }

    public void setAdditionalRequirements(String additionalRequirements) {
        this.additionalRequirements = additionalRequirements;
    }

    public String getAdditionalRequirements() {
        return additionalRequirements;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("subject", getSubject())
                .append("grade", getGrade())
                .append("location", getLocation())
                .append("description", getDescription())
                .append("preferredGender", getPreferredGender())
                .append("budget", getBudget())
                .append("availability", getAvailability())
                .append("duration", getDuration())
                .append("teachingMethod", getTeachingMethod())
                .append("additionalRequirements", getAdditionalRequirements())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("status", getStatus())
                .append("userName", getUserName())
                .toString();
    }
}
